package com.hjli.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hjli.model.ArticleCommentInfo;

public interface ArticleCommentInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleCommentInfo record);

    int insertSelective(ArticleCommentInfo record);

    ArticleCommentInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleCommentInfo record);

    int updateByPrimaryKey(ArticleCommentInfo record);
    
    List<ArticleCommentInfo> findCommentByAid(@Param("aid")int aid);
    
    List<ArticleCommentInfo> findCommentByPid(@Param("pid")int pid);
    
    ArticleCommentInfo findByEmail(@Param("email")String email);
    
    List<ArticleCommentInfo> findCommentInfoByCount(@Param("count")int count);
    
    ArticleCommentInfo findLastComment(@Param("email")String email);
    
    List<ArticleCommentInfo> findByPage(@Param("startNum")int startNum,@Param("everyPageNum")int everyPageNum);
    
    int findSumCount();
}